package com.example.expinterview.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * @classname: EiUser
 * @description: TODO
 * @author: kaiser
 * @date: 2021/10/18 21:08
 * @version: 1.0
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value = "用户类")
public class EiUser {
    @TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "id")
    private Long id;
    @ApiModelProperty(value = "微信openid")
    private String openid;
    @ApiModelProperty(value = "头像")
    private String avatar;
    @ApiModelProperty(value = "昵称")
    private String nickName;
    @ApiModelProperty(value = "手机号")
    private String phone;
    @ApiModelProperty(value = "积分")
    private Integer integral;
    @ApiModelProperty(value = "创建时间", hidden = true)
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime gmtCreate;
    @ApiModelProperty(value = "修改时间", hidden = true)
    @TableField(fill = FieldFill.UPDATE)
    private LocalDateTime gmtModified;
    @TableLogic
    @TableField(value = "is_deleted")
    @ApiModelProperty(hidden = true)
    private Boolean deleted;
}
